package com.qtong.rotatenavigation;

import java.io.File;
import java.io.IOException;

import android.content.Context;
import android.os.Environment;
import android.util.Log;
import android.widget.Toast;

public class DownLoadThread implements Runnable {

	private String url;
	private int id;
	private DownLoadNotification dn;
	private File fn;
	private DownLoad dl = new DownLoad();
	public DownLoad getDl() {
		return dl;
	}

	public void setDl(DownLoad dl) {
		this.dl = dl;
	}

	public DownLoadThread(String url, int id, DownLoadNotification dn,File fn) {
		this.url = url;
		this.id = id;
		this.dn = dn;
		this.fn=fn;
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		dl.download(url, fn, id, dn.getHandler(), fn.length());
	}

	
}
